.class public Lcom/jecelyin/common/widget/dialog/a;
.super Landroid/app/Dialog;
.source "CustomDialog.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jecelyin/common/widget/dialog/a$e;,
        Lcom/jecelyin/common/widget/dialog/a$d;,
        Lcom/jecelyin/common/widget/dialog/a$c;
    }
.end annotation


# instance fields
.field protected a:Lcom/jecelyin/common/widget/dialog/a$c;

.field private b:Landroid/view/View;

.field private c:Landroid/widget/RelativeLayout;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/view/View;

.field private f:Landroid/widget/TextView;

.field private g:Landroidx/recyclerview/widget/RecyclerView;

.field private h:Landroid/widget/FrameLayout;

.field private i:Landroid/widget/EditText;

.field private j:Landroid/view/View;

.field private k:Landroid/widget/Button;

.field private l:Landroid/widget/Button;

.field private m:Landroid/widget/Button;

.field private n:Lcom/jecelyin/common/widget/dialog/DialogListAdapter;

.field private o:Landroid/content/DialogInterface$OnClickListener;


# direct methods
.method public constructor <init>(Lcom/jecelyin/common/widget/dialog/a$c;)V
    .locals 1

    .line 1
    invoke-virtual {p1}, Lcom/jecelyin/common/widget/dialog/a$c;->b()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/app/Dialog;-><init>(Landroid/content/Context;)V

    .line 2
    iput-object p1, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/common/widget/dialog/a;)Lcom/jecelyin/common/widget/dialog/DialogListAdapter;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/common/widget/dialog/a;->n:Lcom/jecelyin/common/widget/dialog/DialogListAdapter;

    return-object p0
.end method

.method private b()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v0, Lcom/jecelyin/common/widget/dialog/a$a;

    invoke-direct {v0, p0}, Lcom/jecelyin/common/widget/dialog/a$a;-><init>(Lcom/jecelyin/common/widget/dialog/a;)V

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->o:Landroid/content/DialogInterface$OnClickListener;

    .line 3
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->j:Landroid/content/DialogInterface$OnDismissListener;

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->b:Ljava/lang/CharSequence;

    const/16 v1, 0x8

    const/4 v2, 0x0

    if-eqz v0, :cond_2

    .line 6
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->d:Landroid/widget/TextView;

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 7
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 8
    :cond_2
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 9
    :goto_0
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->c:Ljava/lang/CharSequence;

    if-eqz v0, :cond_3

    .line 10
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->f:Landroid/widget/TextView;

    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 11
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 12
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->e:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 13
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->b:Ljava/lang/CharSequence;

    if-nez v3, :cond_4

    .line 14
    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v3, Lcom/jecelyin/editor/v2/h;->je_dp_25:I

    invoke-virtual {v0, v3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v0

    .line 15
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->f:Landroid/widget/TextView;

    invoke-virtual {v3, v0, v0, v0, v2}, Landroid/widget/TextView;->setPadding(IIII)V

    goto :goto_1

    .line 16
    :cond_3
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 17
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->e:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 18
    :cond_4
    :goto_1
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->d:Ljava/lang/CharSequence;

    if-eqz v0, :cond_5

    .line 19
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->k:Landroid/widget/Button;

    invoke-virtual {v3, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 20
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->k:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 21
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->k:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 22
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->g:Landroid/content/DialogInterface$OnClickListener;

    if-nez v3, :cond_6

    .line 23
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->o:Landroid/content/DialogInterface$OnClickListener;

    iput-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->g:Landroid/content/DialogInterface$OnClickListener;

    goto :goto_2

    .line 24
    :cond_5
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->k:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 25
    :cond_6
    :goto_2
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->e:Ljava/lang/CharSequence;

    if-eqz v0, :cond_7

    .line 26
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->l:Landroid/widget/Button;

    invoke-virtual {v3, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 27
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->l:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 28
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->l:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 29
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->h:Landroid/content/DialogInterface$OnClickListener;

    if-nez v3, :cond_8

    .line 30
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->o:Landroid/content/DialogInterface$OnClickListener;

    iput-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->h:Landroid/content/DialogInterface$OnClickListener;

    goto :goto_3

    .line 31
    :cond_7
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->l:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 32
    :cond_8
    :goto_3
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->f:Ljava/lang/CharSequence;

    if-eqz v0, :cond_9

    .line 33
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->m:Landroid/widget/Button;

    invoke-virtual {v3, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 34
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->m:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 35
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->m:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 36
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->i:Landroid/content/DialogInterface$OnClickListener;

    if-nez v3, :cond_a

    .line 37
    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->o:Landroid/content/DialogInterface$OnClickListener;

    iput-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->i:Landroid/content/DialogInterface$OnClickListener;

    goto :goto_4

    .line 38
    :cond_9
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->m:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 39
    :cond_a
    :goto_4
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->k:Ljava/util/Map;

    if-eqz v3, :cond_c

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->l:Ljava/util/List;

    if-eqz v0, :cond_c

    .line 40
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->g:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 41
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->m:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    if-nez v3, :cond_b

    .line 42
    new-instance v3, Landroidx/recyclerview/widget/LinearLayoutManager;

    iget-object v4, v0, Lcom/jecelyin/common/widget/dialog/a$c;->a:Landroid/content/Context;

    invoke-direct {v3, v4}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    iput-object v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->m:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    .line 43
    :cond_b
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->g:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v3, v3, Lcom/jecelyin/common/widget/dialog/a$c;->m:Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    invoke-virtual {v0, v3}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 44
    new-instance v0, Lcom/jecelyin/common/widget/dialog/DialogListAdapter;

    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    invoke-direct {v0, v3}, Lcom/jecelyin/common/widget/dialog/DialogListAdapter;-><init>(Lcom/jecelyin/common/widget/dialog/a$c;)V

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->n:Lcom/jecelyin/common/widget/dialog/DialogListAdapter;

    .line 45
    new-instance v3, Lcom/jecelyin/common/widget/dialog/a$b;

    invoke-direct {v3, p0}, Lcom/jecelyin/common/widget/dialog/a$b;-><init>(Lcom/jecelyin/common/widget/dialog/a;)V

    invoke-virtual {v0, v3}, Lcom/jecelyin/common/widget/dialog/DialogListAdapter;->a(Lcom/jecelyin/common/widget/dialog/DialogListAdapter$c;)V

    .line 46
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->g:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->n:Lcom/jecelyin/common/widget/dialog/DialogListAdapter;

    invoke-virtual {v0, v3}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 47
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->n:Lcom/jecelyin/common/widget/dialog/DialogListAdapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 48
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget v3, v0, Lcom/jecelyin/common/widget/dialog/a$c;->n:I

    const/4 v4, -0x1

    if-eq v3, v4, :cond_d

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->l:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v3, v0, :cond_d

    .line 49
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->g:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v3, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget v3, v3, Lcom/jecelyin/common/widget/dialog/a$c;->n:I

    invoke-virtual {v0, v3}, Landroidx/recyclerview/widget/RecyclerView;->smoothScrollToPosition(I)V

    goto :goto_5

    .line 50
    :cond_c
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->g:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 51
    :cond_d
    :goto_5
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->o:Landroid/view/View;

    if-eqz v0, :cond_e

    .line 52
    iget-object v1, p0, Lcom/jecelyin/common/widget/dialog/a;->h:Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 53
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->h:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->setVisibility(I)V

    goto :goto_6

    .line 54
    :cond_e
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->h:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    :goto_6
    return-void
.end method

.method private c()V
    .locals 1

    .line 1
    sget v0, Lcom/jecelyin/editor/v2/j;->dialogContainerView:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->b:Landroid/view/View;

    .line 2
    sget v0, Lcom/jecelyin/editor/v2/j;->titleTv:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->d:Landroid/widget/TextView;

    .line 3
    sget v0, Lcom/jecelyin/editor/v2/j;->contentRootView:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->c:Landroid/widget/RelativeLayout;

    .line 4
    sget v0, Lcom/jecelyin/editor/v2/j;->contentScrollView:I

    invoke-virtual {p0, v0}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->e:Landroid/view/View;

    .line 5
    sget v0, Lcom/jecelyin/editor/v2/j;->contentTv:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->f:Landroid/widget/TextView;

    .line 6
    sget v0, Lcom/jecelyin/editor/v2/j;->contentRecyclerView:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->g:Landroidx/recyclerview/widget/RecyclerView;

    .line 7
    sget v0, Lcom/jecelyin/editor/v2/j;->contentCustomView:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->h:Landroid/widget/FrameLayout;

    .line 8
    sget v0, Lcom/jecelyin/editor/v2/j;->btnLayout:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->j:Landroid/view/View;

    .line 9
    sget v0, Lcom/jecelyin/editor/v2/j;->positiveBtn:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->k:Landroid/widget/Button;

    .line 10
    sget v0, Lcom/jecelyin/editor/v2/j;->neutralBtn:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->l:Landroid/widget/Button;

    .line 11
    sget v0, Lcom/jecelyin/editor/v2/j;->negativeBtn:I

    invoke-virtual {p0, v0}, Lcom/jecelyin/common/widget/dialog/a;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->m:Landroid/widget/Button;

    return-void
.end method


# virtual methods
.method public a()Landroid/view/View;
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object v0, v0, Lcom/jecelyin/common/widget/dialog/a$c;->o:Landroid/view/View;

    return-object v0
.end method

.method public a(I)Landroid/view/View;
    .locals 0
    .param p1    # I
        .annotation build Landroidx/annotation/IdRes;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Landroid/view/View;",
            ">(I)TT;"
        }
    .end annotation

    .line 2
    invoke-super {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;

    move-result-object p1

    return-object p1
.end method

.method public a(Landroid/widget/EditText;)V
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/jecelyin/common/widget/dialog/a;->i:Landroid/widget/EditText;

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->k:Landroid/widget/Button;

    if-ne p1, v0, :cond_0

    .line 2
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object p1, p1, Lcom/jecelyin/common/widget/dialog/a$c;->g:Landroid/content/DialogInterface$OnClickListener;

    const/4 v0, -0x1

    invoke-interface {p1, p0, v0}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->l:Landroid/widget/Button;

    if-ne p1, v0, :cond_1

    .line 4
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object p1, p1, Lcom/jecelyin/common/widget/dialog/a$c;->h:Landroid/content/DialogInterface$OnClickListener;

    const/4 v0, -0x3

    invoke-interface {p1, p0, v0}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/common/widget/dialog/a;->m:Landroid/widget/Button;

    if-ne p1, v0, :cond_2

    .line 6
    iget-object p1, p0, Lcom/jecelyin/common/widget/dialog/a;->a:Lcom/jecelyin/common/widget/dialog/a$c;

    iget-object p1, p1, Lcom/jecelyin/common/widget/dialog/a$c;->i:Landroid/content/DialogInterface$OnClickListener;

    const/4 v0, -0x2

    invoke-interface {p1, p0, v0}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V

    :cond_2
    :goto_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    .line 1
    invoke-super {p0, p1}, Landroid/app/Dialog;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget v0, Lcom/jecelyin/editor/v2/h;->customDialogPadding:I

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p1

    .line 3
    invoke-virtual {p0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x0

    .line 4
    invoke-virtual {v0, v1}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 5
    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 6
    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, p1, p1, p1, p1}, Landroid/view/View;->setPadding(IIII)V

    const/16 p1, 0x20

    .line 7
    invoke-virtual {v0, p1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 8
    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object p1

    const/4 v0, -0x1

    .line 9
    iput v0, p1, Landroid/view/WindowManager$LayoutParams;->width:I

    const/4 v0, -0x2

    .line 10
    iput v0, p1, Landroid/view/WindowManager$LayoutParams;->height:I

    const/16 v0, 0x11

    .line 11
    iput v0, p1, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 12
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->onWindowAttributesChanged(Landroid/view/WindowManager$LayoutParams;)V

    .line 13
    sget p1, Lcom/jecelyin/editor/v2/k;->je_custom_dialog_layout:I

    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setContentView(I)V

    .line 14
    invoke-direct {p0}, Lcom/jecelyin/common/widget/dialog/a;->c()V

    .line 15
    invoke-direct {p0}, Lcom/jecelyin/common/widget/dialog/a;->b()V

    return-void
.end method
